package com.sporadic.backstage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sporadic.backstage.entity.DishesType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DishesTypeMapper extends BaseMapper<DishesType> {
    //查询商家所有菜品类型
    List<DishesType> selDishesTypeAlL(@Param("merchantId") Integer merchantId);

    /**
     * 分页查询菜品类型
     * @param page 分页条件
     * @param merchantId 商家ID
     * @return 分页信息
     */
    IPage<DishesType> selDishesType(Page page , @Param("merchantId") Integer merchantId);

}
